package com.nf.ch03.test05.homework;

/**
 * @author lwj
 * @date 2025-03-03
 * @vesion 1.0.0
 */
public class WXPayment extends Payment{
    // 构造方法
    public WXPayment() {}
    public WXPayment(String name, Double price) {
        super(name, price);
    }

    @Override
    public void goPayment() {
        System.out.println("我当前使用的是"+this.getName()+",支付的金额为："+this.getPrice());
    }
}
